export interface NewsModel{
  id: any
  name: string
  context: string
  pushDate: any
  image: string
  intro:string
  createTime:any
}

export async function getNewsList(params: any) {
  return usePost<any>('/web/newsList', params)
}

export async function getNewsDetail(id: any) {
  return useGet<NewsModel>(`/web/findNewsById/${id}`)
}

export interface CarouselModel{
  id: any
  image:string
  url:string
}

export async function getCarouselList() {
  return useGet<CarouselModel[]>('/web/carouselList')
}

export async function getCooperateList(){
  return useGet<CarouselModel[]>('/web/cooperateList')
}